//
//  LoginScene.h
//  SpaceStorm
//
//  Created by 祥 雍 on 13-6-3.
//  Copyright (c) 2013年 __MyCompanyName__. All rights reserved.
//

#import "cocos2d.h"
#import "UserData.h"

@interface LoginScene : CCLayer
{
    NSUserDefaults *ud;
    NSData * udObject;
    
    CCMenuItemFont *selectUserData1;
    CCMenuItemFont *selectUserData2;
    CCMenuItemFont *selectUserData3;
    
    CCMenu* menu;
}

+(CCScene *) scene;

- (NSString*) getMenuItemNameByUserData:(UserData*)userData;
- (CCMenuItemFont*) getMentItemByIndex:(int)index isCreate:(BOOL)isCreate;

- (void) onSelectUserData1:(id)sender;
- (void) onCreateUserData1:(id)sender;
- (void) onCancleUserData1:(id)sender;

- (void) onSelectUserData2:(id)sender;
- (void) onCreateUserData2:(id)sender;
- (void) onCancleUserData2:(id)sender;

- (void) onSelectUserData3:(id)sender;
- (void) onCreateUserData3:(id)sender;
- (void) onCancleUserData3:(id)sender;


@end